package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.api.domain.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 文章管理对象 tb_articles
 * 
 * @author hyx
 * @date 2025-03-08
 */
public class CwArticles extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章 ID */
    private Long articleId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String articleTitle;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String articleContent;

    /** 文章图片 */
    @Excel(name = "文章图片")
    private String authorImg;

    /** 用户 ID */
    @Excel(name = "用户 ID")
    private Long userId;

    /** 文章创建时间 */
    private Date createdAt;

    /** 文章更新时间 */
    private Date updatedAt;

    /** 添加 sysUser 属性 */
    private SysUser sysUser;
    // sysUser 属性的 getter 方法
    public SysUser getSysUser() {
        return sysUser;
    }

    // sysUser 属性的 setter 方法
    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }
    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }
    public void setArticleTitle(String articleTitle) 
    {
        this.articleTitle = articleTitle;
    }

    public String getArticleTitle() 
    {
        return articleTitle;
    }
    public void setArticleContent(String articleContent) 
    {
        this.articleContent = articleContent;
    }

    public String getArticleContent() 
    {
        return articleContent;
    }
    public void setAuthorImg(String authorImg) 
    {
        this.authorImg = authorImg;
    }

    public String getAuthorImg() 
    {
        return authorImg;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("articleId", getArticleId())
            .append("articleTitle", getArticleTitle())
            .append("articleContent", getArticleContent())
            .append("authorImg", getAuthorImg())
            .append("userId", getUserId())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
